package 链表;

/**
 * Created by yang on 2016/8/24.
 */
public class ListNode {

    public int val;
    public ListNode next = null;

    public ListNode (int val) {
        this.val = val;
    }


    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public ListNode getNext() {
        return next;
    }

    public void setNext(ListNode next) {
        this.next = next;
    }
}
